package com.bysj.yqsht.service;

import com.bysj.yqsht.bean.Account;
import com.bysj.yqsht.bean.extend.AccountExtend;

import java.util.List;

public interface IAccountService {

    List<Account> findAll();
    List<AccountExtend> findWithAll(int pageNum,int limit);
    List<AccountExtend> findWithAllBy(Long roleId,String name);

    void saveOrUpdate (Account account);
    void deleteById(long id);

    String login(String username,String password);

}
